<template>
  <div class="shoukuanpeizhi">
    <top></top>
    <div class="flex zhiboxitong_content">
      <div class="left">
        <left></left>
      </div>
      <div class="right">
        <div class="zhiboxitong_right">
          <div class="tab_flex">
            <div @click="choosetab('first')" :class="all.activeName === 'first' ? 'tabsClick' : 'tabsNoClick'">我的商城订单</div>
            <div @click="choosetab('second')" :class="all.activeName === 'second' ? 'tabsClick' : 'tabsNoSecondClick'">分销上游小程序订单</div>
          </div>
          <div class="flex input_style">
            <div class="flexc">
              <div class="style_title">
                <div style="margin:12px 0 5px 28px">ID</div>
                <el-input v-model="all.oid" placeholder="请输入内容" style="margin-left:20px;width:242px"></el-input>
              </div>
            </div>
            <div class="flexc " style="margin-left:20px;">
              <div>
                 <div style="margin:12px 0 5px 12px">订单ID</div>
                <el-input v-model="all.order_id" placeholder="请输入内容" style="margin-left:0px;width:242px"></el-input>
              </div>
            </div>
            <!-- <div class="flexc" style="margin-bottom: 20px;">
              <div style="width: 100px;text-align: right;">商品编码：</div>
              <div><el-input v-model="all.source_sku" placeholder="请输入内容"></el-input></div>
            </div>-->
            <!-- <div class="flexc" style="margin-bottom: 20px;">
              <div style="width: 100px;text-align: right;">交易状态：</div>
              <div>
                <el-select v-model="all.status" placeholder="选择已有的直播页">
                 <el-option v-for="item in list" :key="item.value" :label="item.name" :value="item.value"></el-option>
                </el-select>
              </div>
            </div>-->
            <div class="flexc" style="margin-left:20px">
              <div>
                <div style="margin:12px 0 5px 12px">退款状态</div>
                <el-select v-model="all.pay_status" placeholder="选择退款状态" style="width:242px">
                  <el-option label="待支付" value="0"></el-option>
                  <el-option label="已支付" value="1"></el-option>
                  <!-- <el-option label="已取消" value="2"></el-option>
                  <el-option label="已超时" value="3"></el-option>
                  <el-option label="已核销" value="4"></el-option>-->
                  <el-option label="退款中" value="5"></el-option>
                  <el-option label="已退款" value="6"></el-option>
                  <el-option label="退款执行中" value="7"></el-option>
                  <el-option label="退款失败" value="8"></el-option>
                  <el-option label="退款执行失败" value="9"></el-option>
                </el-select>
              </div>
            </div>
            <div class="flexc" style="margin-left:20px">
              <div>
                <div style="margin:12px 0 5px 12px;">订单来源</div>
                <el-input v-model="all.source" placeholder="请输入内容" style="width:242px"></el-input>
              </div>
            </div>
            <div class="flexc" style="margin-left:20px; ">
              <div>
               <div style="margin:12px 0 5px 12px;">商品名称</div>
                <el-input v-model="all.title" placeholder="请输入内容" style="width:242px"></el-input>
              </div>
            </div>
            <div class="flexc" style="margin-left:20px">
              <div>
               <div style="margin:12px 0 5px 12px;">手机号</div>
                <el-input v-model="all.address_mobile" placeholder="请输入手机号" style="width:242px"></el-input>
              </div>
            </div>
            <div class="flexc" style="margin:20px 0;">
              <div style="margin-left: 20px;">
                <div style="margin:12px 0 5px 12px;">创建时间</div>
                <el-date-picker
                  v-model="all.time"
                  :picker-options="pickerOptions"
                  clearable
                  @change="changetime"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  type="datetimerange"
                  range-separator="至"
                  start-placeholder="开始日期"
                  end-placeholder="结束日期"
                ></el-date-picker>
                <el-button
                  type="danger"
                  size="large"
                  @click="search"
                  style="background:#F72C50;border:none;margin:3px 0 0 20px;height:40px"
                  round
                  icon="el-icon-search"
                >搜索</el-button>
              </div>
            </div>
          </div>
          <div class="tabs_container">
            <div style='display: flex;width: 60%;justiy-content:space-around;fmargin-bottom: 20px;cursor: pointer;'>
               <!-- v-model="all.order_status" @tab-click="handleClick" -->
              <div class='money_style' @click="handleClick('yigeyue')"  :class="all.order_status === 'yigeyue' ? 't_tab_title_lei' : ''">近一个月订单
                 <div

                     :class="{ t_under_line_lei: all.order_status === 'yigeyue'}"
                  ></div>
              </div>
              <div  class='money_style' @click="handleClick('daifukuan')" :class="all.order_status === 'daifukuan' ? 't_tab_title_lei' : ''">待付款
                  <div
                     :class="{ t_under_line_lei: all.order_status === 'daifukuan'}"
                  ></div>
              </div>
              <div  class='money_style' @click="handleClick('yifukuan')" :class="all.order_status === 'yifukuan' ? 't_tab_title_lei' : ''">已付款
                <div
                     :class="{ t_under_line_lei: all.order_status === 'yifukuan'}"
                  ></div>
              </div>
              <div  class='money_style' @click="handleClick('tuikuanzhong')" :class="all.order_status === 'tuikuanzhong' ? 't_tab_title_lei' : ''">退款中
                <div
                     :class="{ t_under_line_lei: all.order_status === 'tuikuanzhong'}"
                  ></div>
              </div>
              <div  class='money_style' @click="handleClick('tuikuanchenggong')" :class="all.order_status === 'tuikuanchenggong' ? 't_tab_title_lei' : ''">退款成功
                <div
                     :class="{ t_under_line_lei: all.order_status === 'tuikuanchenggong'}"
                  ></div>
              </div>
              <div class='money_style' @click="handleClick('yigeyueqian')" :class="all.order_status === 'yigeyueqian' ? 't_tab_title_lei' : ''">一个月前的订单
                <div
                     :class="{ t_under_line_lei: all.order_status === 'yigeyueqian'}"
                  ></div>
              </div>
            </div>
          </div>

          <div class="zhiboxitong_table">
            <div class="flex tit" style="padding: 10px 20px 0 20px;border-top-left-radius: 40px;font-size:14px">
              <div class="ft1" style="text-align: center;color:#5E6C93;font-size:14px">商品</div>
              <div class="ft2" style="text-align: center;color:#5E6C93;font-size:14px">单价</div>
              <div class="ft3" style="text-align: center;color:#5E6C93;font-size:14px">数量</div>
              <div class="ft6" style="text-align: center;color:#5E6C93;font-size:14px">交易状态</div>
              <div class="ft7" style="text-align: center;color:#5E6C93;font-size:14px">实收款</div>
              <div class="ft8" style="text-align: center;color:#5E6C93;font-size:14px">操作</div>
            </div>
            <div class="flex" v-for="(item,index) in list" :key="index">
              <div class="li">
                <div class="flex litop">
                  <!-- <div class="litop1"><el-checkbox v-model="checked"></el-checkbox></div> -->
                  <div style="margin-right: 50px;color:#333333;font-size:14px">id：{{item.id}}</div>
                  <div style="margin-right: 50px;color:#333333;font-size:14px">订单号：{{item.order_id}}</div>
                  <div style="margin-right: 50px;color:#333333;font-size:14px">创建时间：{{item.created_at}}</div>
                  <div style="color:#333333;font-size:14px">订单来源：{{item.order_source}}</div>
                </div>
                <div class="flex licon">
                  <div class="ft1">
                    <div class="flexc">
                      <div class="tu">
                        <img :src="item.img" style="border-radius:10px;" />
                      </div>
                      <div class="zi">
                        <div style="margin-bottom: 10px; font-size: 14px;">{{item.title}}</div>
                        <div
                          style="color: #666; margin-bottom: 10px;font-size:14px"
                          v-if="item.plan_mobile"
                        >购买号码：{{item.plan_mobile}}</div>
                        <div style="color: #666;font-size:14px ">商品编码：{{item.source_sku}}</div>
                      </div>
                    </div>
                  </div>
                  <div class="ft2 flexc">
                    <div
                      style="text-decoration:line-through; width:100%; text-align: center;font-size:14px"
                    >￥{{item.total}}</div>
                    <div style="width:100%; text-align: center;font-size:14px">￥{{item.total}}</div>
                  </div>
                  <div class="ft3 flexcc;font-size:14px">1</div>

                  <div class="ft6 flexcc;font-size:14px" v-if="item.pay_status == 0">待支付</div>
                  <div class="ft6 flexcc;font-size:14px" v-if="item.pay_status == 1">已支付</div>
                  <!-- <div class="ft6 flexcc" v-if="item.pay_status == 2">已取消</div>
                  <div class="ft6 flexcc" v-if="item.pay_status == 3">已超时</div>
                  <div class="ft6 flexcc" v-if="item.pay_status == 4">已核销</div>-->
                  <div class="ft6 flexcc;font-size:14px" v-if="item.pay_status == 5">退款中</div>
                  <div class="ft6 flexcc;font-size:14px" v-if="item.pay_status == 6">已退款</div>
                  <div class="ft6 flexcc;font-size:14px" v-if="item.pay_status == 7">退款执行中</div>
                  <div class="ft6 flexcc;font-size:14px" v-if="item.pay_status == 8">退款失败</div>
                  <div class="ft6 flexcc;font-size:14px" v-if="item.pay_status == 9">退款执行失败</div>
                  <div class="ft7 flexcc;font-size:14px">￥{{item.total-item.balance}}</div>
                  <div class="ft8 flexcc;font-size:14px">
                    <!-- <el-button type="text" size="mini" @click="chakanxiangqing(item.id)">查看订单详情</el-button> -->
                    <el-button
                      style="color:#005AFF;font-size:14px"
                      type="text"
                      size="mini"
                      v-if="(item.pay_status == 1||item.pay_status == 5 )&&(item.type==0||item.type==4)"
                      @click="tuikuan(item.id,item.type,item.pay_status)"
                    >退款</el-button>

                    <el-button
                      style="color:#005AFF;font-size:14px"
                      type="text"
                      size="mini"
                      v-if="item.pay_status == 1 && item.type==1"
                      @click="tuikuan4(item.id,item.type,item.pay_status)"
                    >退款</el-button>

                    <el-button
                     style="color:#005AFF;font-size:14px"
                      type="text"
                      size="mini"
                      v-if="item.pay_status == 5"
                      @click="tuikuan2(item)"
                    >同意退款</el-button>
                    <el-button
                     style="color:#005AFF;font-size:14px"
                      type="text"
                      size="mini"
                      v-if="item.pay_status == 5"
                      @click="tuikuan3(item)"
                    >拒绝退款</el-button>

                    <el-button type="text" size="mini" @click="chakan(item)"  style="color:#005AFF;font-size:14px">查看详情</el-button>
                  </div>
                </div>
              </div>
            </div>
            <div style="text-align: right; padding: 10px 0;">
              <el-pagination
                background
                layout="total,prev, pager, next"
                :page-size="all.page_size"
                @current-change="fanye"
                :total="total">
              </el-pagination>
            </div>
          </div>

          <el-dialog
            title="查看详情"
            :visible.sync="log"
            width="500px"
            :close-on-click-modal="false"
            :close-on-press-escape="false"
          >
            <div class="flex">{{xq}}</div>
            <span slot="footer" class="dialog-footer">
              <el-button @click="log = false" style="border-radius: 10px;">知道了</el-button>
            </span>
          </el-dialog>

          <el-dialog
            title="查看详情"
            :visible.sync="chakanlog"
            width="500px"
            :close-on-click-modal="false"
            :close-on-press-escape="false"
          >
            <div class="flexc" style="margin-bottom: 10px;">
              <div style="width: 120px;">身份证号：</div>
              <div>{{chakanall.id_card_num}}</div>
            </div>
            <div class="flexc" style="margin-bottom: 10px;">
              <div style="width: 120px;">身份证名：</div>
              <div>{{chakanall.id_card_name}}</div>
            </div>

            <div class="flexc" style="margin-bottom: 10px;">
              <div style="width: 120px;">收件人：</div>
              <div>{{chakanall.address_name}}</div>
            </div>
            <div class="flexc" style="margin-bottom: 10px;">
              <div style="width: 120px;">手机号：</div>
              <div>{{chakanall.address_mobile}}</div>
            </div>
            <div class="flexc" style="margin-bottom: 10px;">
              <div style="width: 120px;">收货地址：</div>
              <div>{{chakanall.address_province}}{{chakanall.address_city}}{{chakanall.address_district}}{{chakanall.town}}{{chakanall.address}}</div>
            </div>

            <span slot="footer" class="dialog-footer">
              <el-button @click="chakanlog = false" style="border-radius: 10px;">知道了</el-button>
            </span>
          </el-dialog>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import axios from "axios";
import top from "./components/top.vue";
import left from "./components/left.vue";
import moment from "moment";
export default {
  components: {
    top,
    left
  },
  name: "shoukuanpeizhi",
  data() {
    return {
      activeName: "yigeyue",
      list: [],
      xq: "",
      tongbuall: "",
      log: false,
      all: {
        page: 1,
        page_size: 20,
        source_id: "",
        title: "",
        source: "",
        time: [],
        start: "",
        end: "",
        pay_status: "",
        order_status: "yigeyue",
        order_id: "",
        oid: "",
        one_month_before: "",
        activeName: "first",
        address_mobile:""
      },
      total: 0,
      checked: false,
      pickerOptions: {
        shortcuts: [
          {
            text: "最近一周",
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit("pick", [start, end]);
            }
          },
          {
            text: "最近一个月",
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
              picker.$emit("pick", [start, end]);
            }
          },
          {
            text: "最近三个月",
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
              picker.$emit("pick", [start, end]);
            }
          }
        ]
      },
      chakanall: "",
      chakanlog: false
    };
  },
  created() {
    this.all.time = [
      moment()
        .subtract(30, "days")
        .format("YYYY-MM-DD HH:mm:ss"),
      moment().format("YYYY-MM-DD HH:mm:ss")
    ];

    this.all.start = this.all.time[0];
    this.all.end = this.all.time[1];

    this.getlist();
  },
  mounted() {},
  methods: {
          fanye: function(val) {
        this.all.page = val
        this.getlist()
      },

    chakan: function(item) {
      axios
        .get(`${this.apis}/api/order/user/info?id=${item.id}`)
        .then(response => {
          if (response.data.msg.code == 0) {
            this.chakanall = response.data.data;
            this.chakanlog = true;
          } else {
            this.$message.error(response.data.msg.info);
          }
        });
    },
    search: function() {
      this.all.page = 1;
      // this.getlist()
      if (this.all.activeName == "first") {
        this.getlist();
      } else if (this.all.activeName == "second") {
        this.getlist2();
      }
    },
    changetime: function() {
      if (this.all.time == "" || this.all.time == null) {
        this.all.start = "";
        this.all.end = "";
      } else {
        if (this.all.order_status == 1) {
          this.all.order_status = "";
        }
        this.all.one_month_before = "";
        this.all.start = this.all.time[0];
        this.all.end = this.all.time[1];
      }
    },
    tuikuan4: function(id,type,pay_status) {
      this.$confirm("确定要退款吗?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      }).then(() => {
        var obj = {
          id:id
        }

        axios
        .post(`${this.apis}/api/dy-mini/order/refund`, obj)
        .then(response => {
          if (response.data.msg.code == 0) {
            // this.getlist()
            if (this.all.activeName == "first") {
              this.getlist();
            } else if (this.all.activeName == "second") {
              this.getlist2();
            }
            this.$message.success("已退款");
          } else {
            this.$message.error(response.data.msg.info);
          }
        });
      });
    },
    tuikuan: function(id,type,pay_status) {
      this.$confirm("确定要退款吗?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      }).then(() => {
        if(type==4){
          if(pay_status==1){
            var obj = {
              id:id,
              direct_refund:1
            }
          }else{
            var obj = {
              id:id,
              direct_refund:0
            }
          }

          axios
          .post(`${this.apis}/api/wechat-mini/order/refund`, obj)
          .then(response => {
            if (response.data.msg.code == 0) {
              // this.getlist()
              if (this.all.activeName == "first") {
                this.getlist();
              } else if (this.all.activeName == "second") {
                this.getlist2();
              }
              this.$message.success("已退款");
            } else {
              this.$message.error(response.data.msg.info);
            }
          });

        }else{
          var obj = {
            id:id
          }

          axios
          .post(`${this.apis}/api/order/refund`, obj)
          .then(response => {
            if (response.data.msg.code == 0) {
              // this.getlist()
              if (this.all.activeName == "first") {
                this.getlist();
              } else if (this.all.activeName == "second") {
                this.getlist2();
              }
              this.$message.success("已退款");
            } else {
              this.$message.error(response.data.msg.info);
            }
          });

        }


      });
    },
    tuikuan2: function(item) {
      this.$confirm("确定同意退款吗?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      }).then(() => {
        if (item.type == 2) {
          axios
            .post(`${this.apis}/api/ks-mini/order/refund`, {
              id: item.id,
              appid: item.app_id
            })
            .then(response => {
              if (response.data.msg.code == 0) {
                // this.getlist()
                if (this.all.activeName == "first") {
                  this.getlist();
                } else if (this.all.activeName == "second") {
                  this.getlist2();
                }
                this.$message.success("已退款");
              } else {
                this.$message.error(response.data.msg.info);
              }
            });
        } else if (item.type == 1) {
          //抖音
          axios
            .post(`${this.apis}/api/mini/refund/handle`, {
              id: item.id,
              refund_status: 1
            })
            .then(response => {
              if (response.data.msg.code == 0) {
                // this.getlist()
                if (this.all.activeName == "first") {
                  this.getlist();
                } else if (this.all.activeName == "second") {
                  this.getlist2();
                }
                this.$message.success("已退款");
              } else {
                this.$message.error(response.data.msg.info);
              }
            });
        }  else if (item.type == 4) {
          if(item.pay_status==1){
            var obj = {
              id: item.id,
              refund_status: 1
            }
          }else if(item.pay_status==5){
            var obj = {
              id: item.id,
              refund_status: 0
            }
          }
          //微信
          axios
            .post(`${this.apis}/api/wechat-mini/order/refund`, obj)
            .then(response => {
              if (response.data.msg.code == 0) {
                // this.getlist()
                setTimeout(() => {
                  if (this.all.activeName == "first") {
                    this.getlist();
                  } else if (this.all.activeName == "second") {
                    this.getlist2();
                  }
                }, 600);



                this.$message.success("已退款");
              } else {
                this.$message.error(response.data.msg.info);
              }
            });
        } else {
          axios
            .post(`${this.apis}/api/order/refund`, { id: item.id })
            .then(response => {
              if (response.data.msg.code == 0) {
                // this.getlist()
                if (this.all.activeName == "first") {
                  this.getlist();
                } else if (this.all.activeName == "second") {
                  this.getlist2();
                }
                this.$message.success("已退款");
              } else {
                this.$message.error(response.data.msg.info);
              }
            });
        }
      });
    },
    tuikuan3: function(item) {
      this.$prompt("请输入拒绝退款备注", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      }).then(({ value }) => {
        if (value != "") {
          if (item.type == 1) {
            //抖音
            axios
              .post(`${this.apis}/api/mini/refund/handle`, {
                id: item.id,
                refund_status: 2,
                reason: value
              })
              .then(response => {
                if (response.data.msg.code == 0) {
                  // this.getlist()
                  if (this.all.activeName == "first") {
                    this.getlist();
                  } else if (this.all.activeName == "second") {
                    this.getlist2();
                  }
                  this.$message.success("已拒绝");
                } else {
                  this.$message.error(response.data.msg.info);
                }
              });
          }else if (item.type == 4) {
            //微信
            axios
              .post(`${this.apis}/api/wechat-mini/order/refund`, {
                id: item.id,
                refund_status: 2
              })
              .then(response => {
                if (response.data.msg.code == 0) {
                  // this.getlist()
                  if (this.all.activeName == "first") {
                    this.getlist();
                  } else if (this.all.activeName == "second") {
                    this.getlist2();
                  }
                  this.$message.success("已拒绝");
                } else {
                  this.$message.error(response.data.msg.info);
                }
              });
          } else {
            axios
              .post(`${this.apis}/api/order/refund/refuse`, {
                id: item.id,
                refund_reason: value
              })
              .then(response => {
                if (response.data.msg.code == 0) {
                  // this.getlist()
                  if (this.all.activeName == "first") {
                    this.getlist();
                  } else if (this.all.activeName == "second") {
                    this.getlist2();
                  }
                  this.$message.success("已拒绝");
                } else {
                  this.$message.error(response.data.msg.info);
                }
              });
          }
        } else {
          this.$message.error("必须填写退款备注");
        }
      });
    },
    chakanxiangqing: function(id) {
      axios.get(`${this.apis}/api/order/info?id=${id}`).then(response => {
        if (response.data.msg.code == 0) {
          this.xq = response.data.data;
        } else {
          this.$message.error(response.data.msg.info);
        }
      });
      this.log = true;
    },
    getlist: function() {
      let data = JSON.parse(JSON.stringify(this.all));
      delete data.time;
      axios
        .get(`${this.apis}/api/order/list`, { params: data })
        .then(response => {
          if (response.data.msg.code == 0) {
            this.list = response.data.data.data;
            this.total = response.data.data.total;
          } else {
            this.$message.error(response.data.msg.info);
          }
        });
    },
    getlist2: function() {
      console.log("22");
      let data = JSON.parse(JSON.stringify(this.all));
      delete data.time;
      axios
        .get(`${this.apis}/api/order/merchant`, { params: data })
        .then(response => {
          if (response.data.msg.code == 0) {
            this.list = response.data.data.data;
            this.total = response.data.data.total;
          } else {
            this.$message.error(response.data.msg.info);
          }
        });
    },
    sizeschange: function(val) {
      this.all.page_size = val;
    },
    fanye: function(val) {
      this.all.page = val;
      // this.getlist()
      if (this.all.activeName == "first") {
        this.getlist();
      } else if (this.all.activeName == "second") {
        this.getlist2();
      }
    },
    handleClick: function(val) {
      this.all.order_status = val

      // let val = vals.paneName
      //有不同维度的东西
      if (val == "yigeyue") {
        this.all.one_month_before = "";
        this.all.time = [
          moment()
            .subtract(30, "days")
            .format("YYYY-MM-DD HH:mm:ss"),
          moment().format("YYYY-MM-DD HH:mm:ss")
        ];
        console.log(moment().format("YYYY-MM-DD HH:ss:mm"));
        this.all.start = this.all.time[0];
        this.all.end = this.all.time[1];

        this.all.pay_status = "";
      }
      if (val == "daifukuan") {
        this.all.one_month_before = "";
        this.all.pay_status = "0";
      }
      if (val == "yifukuan") {
        this.all.one_month_before = "";
        this.all.pay_status = "1";
      }
      if (val == "yifahuo") {
        //this.all.pay_status = 550
      }
      if (val == "tuikuanzhong") {
        this.all.one_month_before = "";
        this.all.pay_status = "5";
      }
      if (val == "tuikuanchenggong") {
        this.all.one_month_before = "";
        this.all.pay_status = "6";
      }
      if (val == "yigeyueqian") {
        this.all.time = [];
        this.all.start = "";
        this.all.end = "";
        this.all.pay_status = "";
        this.all.one_month_before = 1;
      }

      this.all.page = 1;
      if (this.all.activeName == "first") {
        this.getlist();
      } else if (this.all.activeName == "second") {
        this.getlist2();
      }
      // this.getlist()
    },
    choosetab(active) {
      if (active == this.all.activeName) {
        return;
      }
      this.all.activeName = active;
      this.all.page = 1;
      this.all.order_status = "yigeyue";
      this.all.one_month_before = "";
      this.all.time = [
        moment()
          .subtract(30, "days")
          .format("YYYY-MM-DD HH:mm:ss"),
        moment().format("YYYY-MM-DD HH:mm:ss")
      ];
      console.log(moment().format("YYYY-MM-DD HH:ss:mm"));
      this.all.start = this.all.time[0];
      this.all.end = this.all.time[1];

      this.all.pay_status = "";
      this.all.order_id = "";
      this.all.oid = "";
      this.all.source = "";
      this.all.title = "";
      this.all.address_mobile = "";

      if (this.all.activeName == "first") {
        this.getlist();
      } else if (this.all.activeName == "second") {
        this.getlist2();
      }
    }
  }
};
</script>

<style scoped lang="less">
.tab_flex {
  width: 400px;
  justify-content: space-between;
  display: flex;
  margin: 20px 0;
  margin-left: 25px;
}
/deep/ .el-tabs__header {
  display: none;
}
.tabs_container {
  margin-top: 40px;
  font-size: 18px;
  margin-left: 10px;
}
/deep/ .el-input__inner {
  // border: none;
  border-radius: 15px;
}
.input_style {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  overflow: hidden;
  width: 100%;
  background: #f8f9fd;
}
.shoukuanpeizhi {
  // background: #f2f2f2;
  min-height: 100vh;
  * {
    box-sizing: border-box;
  }
  .zhiboxitong_content {
    height: calc(100vh - 70px);
    .left {
      width: 210px;
      background: #fafafe;
      height: 100%;
    }
    .right {
      padding: 15px 0 0 20px;
      height: 100vh;
      overflow: auto;
      width: calc(100vw - 220px);
      .zhiboxitong_right {
        height: 100vh;
        background: #fff;
        border-radius: 5px;

         overflow: auto;
      }
      .zhiboxitong_table {
        margin-top: 10px;
        font-size: 14px;
        background: #f8f9fd;
        border-top-left-radius: 40px;
        .tit {
          background: #f8f9fd;
          line-height: 40px;
          color: #666;
          margin-bottom: 20px;
        }
        .ft1 {
          width: 500px;
        }
        .ft2 {
          flex: 1;
        }
        .ft3 {
          flex: 1;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .ft4 {
          flex: 1;
          text-align: center;
          justify-content: center;
          align-items: center;
          display: flex;
        }
        .ft5 {
          flex: 1;
          text-align: center;
          justify-content: center;
          align-items: center;
          display: flex;
        }
        .ft6 {
          flex: 1;
          text-align: center;
          justify-content: center;
          align-items: center;
          display: flex;
        }
        .ft7 {
          flex: 1;
          text-align: center;
          justify-content: center;
          align-items: center;
          display: flex;
        }
        .ft8 {
          flex: 1;
          text-align: center;
          justify-content: center;
          align-items: center;
          display: flex;
        }
        .li {
          width: 100%;
          margin-bottom: 25px;
          border-radius: 5px;
          .litop {
            background: white;
            border-bottom:1px solid #f2f2f2 ;
            color: #666;
            line-height: 40px;
            padding-left: 20px;
            border-top-left-radius: 25px;
            border-top-right-radius: 25px;
            width: 98%;
            margin: 0 auto;
          }
          .licon {
            padding: 20px;
            border-bottom-left-radius: 25px;
            border-bottom-right-radius: 25px;
            width: 98%;
            margin: 0 auto;
            background: white;
            .tu {
              margin-right: 20px;
              img {
                width: 100px;
                height: 100px;
              }
            }
            .zi {
              width: 350px;
              font-size: 14px;
            }
          }
        }
      }
    }
  }
}
/deep/ .el-pagination {
  margin-right: 30px;
}
 .tabsClick{
  box-shadow: 0 10px 40px 0 #99AEFF;
  background: rgb(0, 90, 255); border-radius:20px; font-size: 18px; text-align: center; font-weight: 500; color: rgb(255, 255, 255); width: 250px; height: 50px; margin-right: 30px; line-height: 50px;}
 .tabsNoClick{font-size: 18px; text-align: center; font-weight: 500;height: 50px; margin-right: 30px; width: 200px; line-height: 50px;cursor: pointer;}
 .tabsNoSecondClick{font-size: 18px; text-align: center; font-weight: 500;height: 50px; margin-right: 30px; width: 300px; line-height: 50px;cursor: pointer;}
 .t_tab_title_lei {
  color: #005aff;
  font-weight: bold;
}
.t_under_line {
  width: 30px;
  height: 2px;
  background-color: #f6f8fb;
  margin-top: 10px;
}
.t_under_line_lei {
  width: 30px;
  height: 5px;
  background-color: #005aff;
  margin-top: 6px;
  border-radius: 10px;

}
.money_style{
  width: 220px;
  display: flex;
  // justify-content: center;
  align-items: center;
  flex-direction: column;
}
  /deep/ .el-dialog{
    border-radius:20px;
  }
  /deep/ .el-dialog__title {
  font-size: 20px;
  font-weight: bold; /* 修改标题字体大小 */
}
  /deep/ .el-pagination .el-pager li {
  border-radius: 12px; /* 设置圆角大小 */
  background: white;

}

</style>
